/* 使用现代CSS导入语法 */
@import "./variables.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: var(--font-size-normal);
    color: var(--color-text-primary);
    background-color: var(--color-background); */
    line-height: 1.5;
    /* -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    outline: none;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

.page-container {
    padding: var(--spacing-medium);
    min-height: 100vh;
}

.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-light);
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.primary-button {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    border-radius: var(--border-radius-medium);
    padding: var(--spacing-small) var(--spacing-medium);
    font-weight: var(--font-weight-medium);
    transition: opacity var(--transition-duration);
}

.primary-button:active {
    opacity: 0.8;
}

.secondary-button {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-medium);
    padding: var(--spacing-small) var(--spacing-medium);
    font-weight: var(--font-weight-medium);
    transition: background-color var(--transition-duration);
}

.secondary-button:active {
    background-color: rgba(255, 36, 66, 0.05);
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.safe-area-bottom {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}